package com.tuanzi.loan.business.repository.family.impl;

import static com.tuanzi.loan.generated.jooq.loan.tables.UserBlacklist.USER_BLACKLIST;

import java.util.List;

import org.jooq.impl.TableImpl;

import com.tuanzi.loan.business.repository.family.custom.UserBlacklistRepositoryCustom;
import com.tuanzi.loan.core.repository.JOOQBaseRepository;

@SuppressWarnings("rawtypes")
public class UserBlacklistRepositoryImpl extends JOOQBaseRepository implements
		UserBlacklistRepositoryCustom {

	@Override
	protected TableImpl getTable() {
		return null;
	}

	//查找已存在手机号和类型一样的记录
	@Override
	public List<String> repeatCheck(List<String> list, String type) {
		List<String> resultList = dslContext.select(USER_BLACKLIST.MOBNUM).from(USER_BLACKLIST)
		.where(USER_BLACKLIST.MOBNUM.in(list)).and(USER_BLACKLIST.TYPE.eq(type)).fetch(USER_BLACKLIST.MOBNUM);
		return resultList;
	}
	
	


}
